package day5;

/**
 * @author oldliu
 * @since 1.0
 */
public class TestPhone {
    public static void main(String[] args) {
        MobilePhone p=new MobilePhone();
        p.setBrand("iphone15 pro max");
        p.sendSMS("老张");
        p.takePicture();
        System.out.println("---------------------");
        TakePhone p2=new MobilePhone();
        ((MobilePhone) p2).setBrand("华为mate60 rs");
        p2.takePicture();
    }
}
